<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        .outer {
            width: 300px;
            height: 200px;
            background-color: antiquewhite;
            text-align: center;
            border-radius: 10%;
        }
    </style>
</head>
<body>
    <div class="outer">
        <h2>一等奖：<span class="one"></span></h2>
        <h3>二等奖：<span class="two"></span></h3>
        <h4>三等奖：<span class="three"></span></h4>
    </div>
    <script>
        // 声明数组
        const personArr = ['张三','李思','王二','赵丽','赵立','张力']
        // 一等奖
        const random1 = Math.floor(Math.random()*personArr.length)
        document.querySelector('.one').innerHTML=personArr[random1]
        personArr.splice(random1,1)
        // 二等奖
        const random2 = Math.floor(Math.random()*personArr.length)
        document.querySelector('.two').innerHTML=personArr[random2]
        personArr.splice(random2,1)
        // 三等奖
        const random3 = Math.floor(Math.random()*personArr.length)
        document.querySelector('.three').innerHTML=personArr[random3]
    </script>
</body>
</html>